package main.java.Fzy.Demo.MyThread;

public class Father {
    protected int count;
    Father(){
        grow();
    }
    public void grow(){
        count++;
    }
}
class C1 extends Father{
    C1(){
        grow();
    }
    @Override
    public void grow(){
        count++;
        super.grow();
    }
}
class C2 extends Father{

}

class P{
    private int age;

    public void P(){
        age += 5;
    }
    public void showAge(){
        System.out.println(age);
    }
}
class Test{
    public static void main(String[] args) {
        C1 c = new C1();
        System.out.println(c.count);
    }
}
